<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class User extends Seller_Controller
{
	private static $data = array();
	protected $models=['user_model'];
	public function __construct()
	{
	    parent::__construct();
	}

	//加载页面
	public function index()
	{	    
	    $userId=$this->getSellerId();
	    $select='*';
	    $user=$this->user_model->getWhereRow(['userId'=>$userId],$select);
	    self::$data['user']=$user;
	    $this->load->view('seller/user/info.html',self::$data);
	}
	//企业用户认证
	public function cert(){
	    $data=$this->input->post();
	    $data=unsetArray_key($data,'file');
	    $res=$this->user_model->updateWhere(['userId'=>$data['userId']],$data);
	    if ($res){
	        show200();
	    }else {
	        show400();
	    }
	}
	
    
	
	
	
}
/* End of file Login.php */